ã°ããŒãã«çµç¹ã«ãããä¿¡é Œæ§ã®é«ããœãããŠã§ã¢å±éãšéçšã®ããã«äžå¯æ¬ ãªãæ§æç®¡çãšç°å¢ããªãã£ã«é¢ããå æ¬çãªã¬ã€ãã
æ§æç®¡çïŒã°ããŒãã«ãªæåã®ããã®ç°å¢ããªãã£ã®å®çŸ
仿¥ã®çžäºæ¥ç¶ãããäžçã§ã¯ãäŒæ¥ã¯ãœãããŠã§ã¢ãšã¢ããªã±ãŒã·ã§ã³ã«äŸåããŠã倿§ãªç°å¢ã§ã·ãŒã ã¬ã¹ã«éçšããŠããŸããéçºãããã¹ããæ¬çªã«è³ããŸã§ãäžè²«æ§ãšä¿¡é Œæ§ãç¶æããããšãæãéèŠã§ããããã§æ§æç®¡çãå ·äœçã«ã¯ç°å¢ããªãã£ãéèŠãªåœ¹å²ãæãããŸãããã®å æ¬çãªã¬ã€ãã§ã¯ãç°å¢ããªãã£ã®æŠå¿µããã®å©ç¹ã課é¡ããããŠã°ããŒãã«ãªæåã®ããã«ãããéæããæ¹æ³ãæ¢ããŸãã
æ§æç®¡çãšã¯ïŒ
æ§æç®¡çïŒCMïŒã¯ããœãããŠã§ã¢ãããŒããŠã§ã¢ãããã¥ã¡ã³ããããã³ã·ã¹ãã ã®ä»ã®èŠçŽ ãžã®å€æŽãããã®ã©ã€ããµã€ã¯ã«å šäœã«ããã£ãŠç®¡çããã³å¶åŸ¡ããããã®äœç³»çãªã¢ãããŒãã§ããããã«ãããã·ã¹ãã ãæå³ãããšããã«åäœãããã¹ãŠã®å€æŽãé©åã«è¿œè·¡ãæ¿èªãããã³å®è£ ãããããšãä¿èšŒãããŸãã
æ§æç®¡çã®äž»èŠãªåŽé¢ã«ã¯ã次ã®ãã®ããããŸãã
- èå¥ïŒã·ã¹ãã ãæ§æãããã¹ãŠã®æ§æã¢ã€ãã ïŒCIïŒãå®çŸ©ããã³èå¥ããŸãã
- 管çïŒå€æŽèŠæ±ãæ¿èªãããŒãžã§ã³ç®¡çãªã©ãCIãžã®å€æŽã管çããããã®æé ã確ç«ããŸãã
- ç¶æ å ±åïŒCIã®çŸåšã®ç¶æ ã远跡ãããã®æ§æã«é¢ããã¬ããŒããæäŸããŸãã
- ç£æ»ïŒã·ã¹ãã ã®å®éã®æ§æãææžåãããæ§æãšäžèŽããããšã確èªããŸãã
ç°å¢ããªãã£ã®çè§£
ç°å¢ããªãã£ãšã¯ãéçºããã¹ããã¹ããŒãžã³ã°ãæ¬çªãªã©ãç°ãªãç°å¢éã§ã®æ§æã®äžè²«æ§ãšé¡äŒŒæ§ãæããŸããçæ³çã«ã¯ããããã®ç°å¢ã¯ãå±éäžãéçšäžã«çºçããåé¡ã®ãªã¹ã¯ãæå°éã«æããããã«ãã§ããã ãåäžã§ããã¹ãã§ãã
ããŒã«ã«ç°å¢ã§æ©èœãéçºãããããå®ç§ã«åäœãããšæ³åããŠãã ããããããããããïŒãããã«ç°ãªãïŒã¹ããŒãžã³ã°ç°å¢ã«å±éãããšããã®æ©èœã¯å€±æããŸããããã¯ãç°å¢ããªãã£ãæ¬ åŠããŠããå žåçãªäŸã§ããç°å¢éã®éããäºæãã¬åé¡ãåŒãèµ·ãããã®ã§ãã
çã®ç°å¢ããªãã£ãéæããããšã¯å°é£ã§ãããä¿¡é Œæ§ã®é«ããœãããŠã§ã¢æäŸã®ããã«ã¯äžå¯æ¬ ã§ããããã«ããããç§ã®ãã·ã³ã§ã¯åäœãããçåçŸ€ãæžããã¢ããªã±ãŒã·ã§ã³ããœãããŠã§ã¢éçºã©ã€ããµã€ã¯ã«ïŒSDLCïŒã®ãã¹ãŠã®æ®µéã§äºæž¬ã©ããã«åäœããããšãä¿èšŒãããŸãã
ã°ããŒãã«ãªæèã«ãããç°å¢ããªãã£ã®éèŠæ§
ã°ããŒãã«çµç¹ã«ãšã£ãŠãè€æ°ã®å°åãã¯ã©ãŠããããã€ããŒãèŠå¶ç°å¢ã«ãããã€ã³ãã©ã¹ãã©ã¯ãã£ãšå±éã®ç®¡çã®è€éããããç°å¢ããªãã£ã®å¿ èŠæ§ã¯å¢å€§ããŸããããããªãããã»ã©éèŠãªã®ãã以äžã«ç€ºããŸãã
- å±éãªã¹ã¯ã®äœæžïŒäžè²«ããç°å¢ã¯ãå±éã®å€±æãæ¬çªç°å¢ã§ã®äºæãã¬åé¡ã®ãªã¹ã¯ãæå°éã«æããŸããããã¯ã³ã¹ããããããè©å€ãæãªãå¯èœæ§ããããŸãã
- åžå Žæå ¥æéã®ççž®ïŒæšæºåãããæ§æãšèªååãããå±éã¯ããœãããŠã§ã¢æäŸããã»ã¹ãå éããäŒæ¥ãåžå Žã®èŠæ±ã«è¿ éã«å¯Ÿå¿ã§ããããã«ããŸãã
- ã³ã©ãã¬ãŒã·ã§ã³ã®æ¹åïŒå ±æãããç°å¢ãšæ§æã¯ãå°ççãªå Žæã«é¢ä¿ãªããéçºããã¹ããéçšããŒã éã®ã³ã©ãã¬ãŒã·ã§ã³ãä¿é²ããŸãã
- ä¿¡é Œæ§ãšå®å®æ§ã®åäžïŒäžè²«ããç°å¢ã¯ãã¢ããªã±ãŒã·ã§ã³ã®å šäœçãªä¿¡é Œæ§ãšå®å®æ§ã«è²¢ç®ããäžçäžã®é¡§å®¢ã«è¯å®çãªãŠãŒã¶ãŒãšã¯ã¹ããªãšã³ã¹ãä¿èšŒããŸãã
- ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã®ç°¡çŽ åïŒç°å¢ãé¡äŒŒããŠããå Žåãåé¡ã®æ ¹æ¬åå ãç°ãªã段éã§äžè²«ããŠããå¯èœæ§ãé«ãããããã©ãã«ã·ã¥ãŒãã£ã³ã°ãããç°¡åãã€è¿ éã«ãªããŸãã
- ã³ã¹ãæé©åïŒæšæºåãããç°å¢ãšèªååãããå±éã¯ãæäœæ¥ãæžãããããŠã³ã¿ã€ã ãæå°éã«æããããšã§ãå€§å¹ ãªã³ã¹ãåæžã«ã€ãªãããŸãã
- ã³ã³ãã©ã€ã¢ã³ã¹ãšã»ãã¥ãªãã£ïŒäžè²«ããæ§æãç¶æããããšã¯ãçµç¹ãèŠå¶èŠä»¶ãæºããããã¹ãŠã®ç°å¢ã§ã»ãã¥ãªãã£ããªã·ãŒãæœè¡ããã®ã«åœ¹ç«ã¡ãŸããäŸãã°ããšãŒãããã®GDPRãã«ãªãã©ã«ãã¢ã®CCPAã¯å³æ ŒãªããŒã¿ã¬ããã³ã¹ãèŠæ±ããŸããç°å¢ããªãã£ã«ãããã»ãã¥ãªãã£ç®¡çãšããŒã¿ä¿è·å¯Ÿçã®çµ±äžçãªé©çšãå¯èœã«ãªããŸãã
äŸïŒç±³åœããšãŒããããã¢ãžã¢ã«ãµãŒããŒãæã€å€åœç±ã®eã³ããŒã¹äŒæ¥ãèããŠã¿ãŸããããåå°åã§ããŒã¿ããŒã¹ãµãŒããŒã«ç¬èªã®æ§æãããå ŽåãæŽæ°ãã»ãã¥ãªãã£ããããããã©ãŒãã³ã¹ãã¥ãŒãã³ã°ã®ç®¡çãéåžžã«å°é£ã«ãªããŸããèªååãšæšæºåãããæ§æã«ãã£ãŠéæãããç°å¢ããªãã£ã¯ããã¹ãŠã®ããŒã¿ããŒã¹ãµãŒããŒãåãããŒãžã§ã³ã®ãœãããŠã§ã¢ãå®è¡ããå Žæã«é¢ä¿ãªãäžè²«ããããªã·ãŒã»ããã«åŸã£ãŠæ§æãããããšãä¿èšŒããŸãã
ç°å¢ããªãã£éæã«ããã課é¡
ç°å¢ããªãã£ã®å©ç¹ã¯æããã§ãããç¹ã«è€éã§åæ£ããç°å¢ã§ã¯ããããéæããããšã¯å°é£ãªå ŽåããããŸããäžè¬çãªèª²é¡ã«ã¯æ¬¡ã®ãããªãã®ããããŸãã
- æ§æããªããïŒæéã®çµéãšãšãã«ãæåã§ã®å€æŽãææžåãããŠããªãä¿®æ£ããŸãã¯äžè²«æ§ã®ãªãå±éãã©ã¯ãã£ã¹ã«ãããç°å¢ãä¹é¢ããå¯èœæ§ããããŸãããã®æ§æããªããã¯äºæãã¬åé¡ãåŒãèµ·ãããããªãã£ã®ç¶æãå°é£ã«ããŸãã
- ã€ã³ãã©ã¹ãã©ã¯ãã£ã®è€éãïŒãµãŒããŒããããã¯ãŒã¯ãããŒã¿ããŒã¹ãããã«ãŠã§ã¢ãªã©ã倿§ãªã€ã³ãã©ã¹ãã©ã¯ãã£ã³ã³ããŒãã³ããè€æ°ã®ç°å¢ã§ç®¡çããããšã¯ãè€éã§æéããããå ŽåããããŸãã
- èªååã®æ¬ åŠïŒæåã®æ§æããã»ã¹ã¯ãšã©ãŒãçºçãããããã¹ã±ãŒãªã³ã°ãå°é£ãªãããç°å¢éã®äžè²«æ§ãç¶æããããšãé£ãããªããŸãã
- ã¬ã¬ã·ãŒã·ã¹ãã ïŒã¬ã¬ã·ãŒã·ã¹ãã ã¯åãæ§æç®¡çããŒã«ããã©ã¯ãã£ã¹ãšäºææ§ããªãå¯èœæ§ããããããææ°ã®ã€ã³ãã©ã¹ãã©ã¯ãã£ãšçµ±åããã®ã¯å°é£ãªå ŽåããããŸãã
- ããŒã ã®ãµã€ãåïŒéçºããã¹ããéçšããŒã ããµã€ãã§äœæ¥ããŠããå Žåãæ§æç®¡çã®ããã®å ±ææšæºãšããã»ã¹ã確ç«ããããšãå°é£ã«ãªãããšããããŸãã
- çµç¹æåïŒå€åãžã®æµæãç°å¢ããªãã£ã®å©ç¹ã«å¯Ÿããçè§£ã®æ¬ åŠã¯ãå°å ¥ã®åãçµã¿ã劚ããå¯èœæ§ããããŸãã
- ã³ã³ãã©ã€ã¢ã³ã¹èŠä»¶ïŒå°åã«ãã£ãŠã³ã³ãã©ã€ã¢ã³ã¹èŠä»¶ïŒäŸïŒããŒã¿æåšå°ïŒãç°ãªãå ŽåããããŸããç°å¢ã¯ããããã®ç°ãªãæ³ç矩åãæºããããã«æ§æããå¿ èŠããããŸãã
ç°å¢ããªãã£ãéæããããã®æŠç¥
ãããã®èª²é¡ãå æããç°å¢ããªãã£ãéæããããã«ãçµç¹ã¯ããŸããŸãªæŠç¥ãšãã¹ããã©ã¯ãã£ã¹ãæ¡çšã§ããŸãã
1. Infrastructure as Code (IaC)
Infrastructure as Code (IaC) ã¯ãæåã§ã®æ§æã§ã¯ãªããã³ãŒããéããŠã€ã³ãã©ã¹ãã©ã¯ãã£ã管çããã³ããããžã§ãã³ã°ãããã©ã¯ãã£ã¹ã§ããããã«ãããã€ã³ãã©ã¹ãã©ã¯ãã£ã宣èšçã«å®çŸ©ãããã®å±éãšç®¡çãèªååã§ããŸãã
IaCã®å©ç¹ïŒ
- ããŒãžã§ã³ç®¡çïŒã€ã³ãã©ã¹ãã©ã¯ãã£ã³ãŒãã¯Gitãªã©ã®ããŒãžã§ã³ç®¡çã·ã¹ãã ã«ä¿åã§ããããã倿Žã远跡ãã以åã®ããŒãžã§ã³ã«æ»ãã广çã«å ±åäœæ¥ãè¡ãããšãã§ããŸãã
- èªååïŒIaCã«ãããã€ã³ãã©ã¹ãã©ã¯ãã£ã®å±éãšæ§æãèªååã§ããæäœæ¥ãæžãããŠäžè²«æ§ãåäžãããããšãã§ããŸãã
- åçŸæ§ïŒIaCã¯ãã€ã³ãã©ã¹ãã©ã¯ãã£ãäžè²«æ§ã®ããåçŸå¯èœãªæ¹æ³ã§å±éãããããšãä¿èšŒããæ§æããªããã®ãªã¹ã¯ãæå°éã«æããŸãã
- ã¹ã±ãŒã©ããªãã£ïŒIaCã«ãããæåä»å ¥ãªãã§å¿ èŠã«å¿ããŠã€ã³ãã©ã¹ãã©ã¯ãã£ãç°¡åã«ã¹ã±ãŒã«ã¢ãããŸãã¯ã¹ã±ãŒã«ããŠã³ã§ããŸãã
IaCã®ããã®ããŒã«ïŒ
- TerraformïŒè€æ°ã®ã¯ã©ãŠããããã€ããŒã«ããã£ãŠã€ã³ãã©ã¹ãã©ã¯ãã£ãå®çŸ©ããã³ããããžã§ãã³ã°ã§ãããªãŒãã³ãœãŒã¹ã®Infrastructure as CodeããŒã«ã
- AWS CloudFormationïŒAmazon Web ServicesãæäŸãããµãŒãã¹ã§ããã³ãã¬ãŒãã䜿çšããŠAWSã€ã³ãã©ã¹ãã©ã¯ãã£ãå®çŸ©ããã³ããããžã§ãã³ã°ã§ããŸãã
- Azure Resource ManagerïŒMicrosoft AzureãæäŸãããµãŒãã¹ã§ããã³ãã¬ãŒãã䜿çšããŠAzureã€ã³ãã©ã¹ãã©ã¯ãã£ãå®çŸ©ããã³ããããžã§ãã³ã°ã§ããŸãã
- AnsibleïŒã€ã³ãã©ã¹ãã©ã¯ãã£ã®æ§æãšç®¡çãããã³ã¢ããªã±ãŒã·ã§ã³ã®å±éã«äœ¿çšã§ãããªãŒãã³ãœãŒã¹ã®èªååããŒã«ã
äŸïŒTerraformã䜿çšãããšãä»®æ³ãã·ã³ããããã¯ãŒã¯ãããŒã¿ããŒã¹ãããŒããã©ã³ãµãŒãå«ãã€ã³ãã©ã¹ãã©ã¯ãã£å šäœãæ§æãã¡ã€ã«ã§å®çŸ©ã§ããŸãããã®ãã¡ã€ã«ã䜿çšããŠãè€æ°ã®ç°å¢ã«ããã£ãŠã€ã³ãã©ã¹ãã©ã¯ãã£ãèªåçã«ããããžã§ãã³ã°ããã³æ§æããäžè²«æ§ãšåçŸæ§ã確ä¿ã§ããŸãã
2. æ§æç®¡çããŒã«
æ§æç®¡çããŒã«ã¯ããµãŒããŒãšã¢ããªã±ãŒã·ã§ã³ã®æ§æãšç®¡çã®ããã»ã¹ãèªååããŸããããã«ããããã¹ãŠã®ã·ã¹ãã ãæãŸããç¶æ ã«ããããã¹ãŠã®å€æŽãé©åã«è¿œè·¡ããã³å®è£ ãããããšãä¿èšŒãããŸãã
æ§æç®¡çããŒã«ã®å©ç¹ïŒ
- èªåæ§æïŒæ§æç®¡çããŒã«ã¯ããµãŒããŒãšã¢ããªã±ãŒã·ã§ã³ã®æ§æããã»ã¹ãèªååããæäœæ¥ãæžãããŠäžè²«æ§ãåäžãããŸãã
- æãŸããç¶æ ã®ç®¡çïŒå®çŸ©ãããæ§æããã®éžè±ãèªåçã«ä¿®æ£ãããã¹ãŠã®ã·ã¹ãã ãæãŸããç¶æ ã«ããããšãä¿èšŒããŸãã
- 倿Žè¿œè·¡ïŒæ§æç®¡çããŒã«ã¯æ§æãžã®ãã¹ãŠã®å€æŽã远跡ããç£æ»èšŒè·¡ãæäŸããå¿ èŠã«å¿ããŠä»¥åã®ããŒãžã§ã³ã«æ»ãããšãã§ããŸãã
- ã¹ã±ãŒã©ããªãã£ïŒå€æ°ã®ãµãŒããŒãšã¢ããªã±ãŒã·ã§ã³ã管çã§ãããããå¿ èŠã«å¿ããŠã€ã³ãã©ã¹ãã©ã¯ãã£ãç°¡åã«ã¹ã±ãŒã«ã¢ãããŸãã¯ã¹ã±ãŒã«ããŠã³ã§ããŸãã
äžè¬çãªæ§æç®¡çããŒã«ïŒ
- AnsibleïŒæ§æç®¡çãã¢ããªã±ãŒã·ã§ã³å±éãã¿ã¹ã¯èªååã«äœ¿çšã§ãããªãŒãã³ãœãŒã¹ã®èªååããŒã«ã
- ChefïŒã¬ã·ããšã¯ãã¯ããã¯ã䜿çšããŠã·ã¹ãã ã®æãŸããç¶æ ãå®çŸ©ãã匷åãªæ§æç®¡çããŒã«ã
- PuppetïŒå®£èšçãªèšèªã䜿çšããŠã·ã¹ãã ã®æãŸããç¶æ ãå®çŸ©ããæ§æç®¡çããŒã«ã
- SaltStackïŒã€ã³ãã©ã¹ãã©ã¯ãã£ç®¡çãèªååããããã®æè»ã§ã¹ã±ãŒã©ãã«ãªãã©ãããã©ãŒã ãæäŸããæ§æç®¡çããŒã«ã
äŸïŒAnsibleã䜿çšãããšãè€æ°ã®ãµãŒããŒã«WebãµãŒããŒãããŒã¿ããŒã¹ãããã³ãã®ä»ã®å¿ èŠãªãœãããŠã§ã¢ãã€ã³ã¹ããŒã«ããã³æ§æãããã¬ã€ããã¯ãå®çŸ©ã§ããŸãããã®ãã¬ã€ããã¯ã¯ãç°å¢å ã®ãã¹ãŠã®ãµãŒããŒã§å®è¡ã§ããããããäžè²«ããŠæ§æãããããšãä¿èšŒããŸãã
3. ã³ã³ããåãšãªãŒã±ã¹ãã¬ãŒã·ã§ã³
Dockerã®ãããªæè¡ã䜿çšããã³ã³ããåã«ãããã¢ããªã±ãŒã·ã§ã³ãšãã®äŸåé¢ä¿ãåé¢ãããã³ã³ããã«ããã±ãŒãžåã§ããã©ã®ç°å¢ã§ãç°¡åã«å±éããã³å®è¡ã§ããŸããKubernetesã®ãããªãªãŒã±ã¹ãã¬ãŒã·ã§ã³ããŒã«ã¯ãã³ã³ããã®å±éãã¹ã±ãŒãªã³ã°ã管çãèªååããŸãã
ã³ã³ããåãšãªãŒã±ã¹ãã¬ãŒã·ã§ã³ã®å©ç¹ïŒ
- ç§»æ€æ§ïŒã³ã³ããã¯ç°ãªãç°å¢éã§ç°¡åã«ç§»åã§ãããããåºç€ãšãªãã€ã³ãã©ã¹ãã©ã¯ãã£ã«é¢ä¿ãªããã¢ããªã±ãŒã·ã§ã³ãäžè²«ããŠå®è¡ãããããšãä¿èšŒãããŸãã
- åé¢ïŒã³ã³ããã¯ã¢ããªã±ãŒã·ã§ã³éã«åé¢ãæäŸããç«¶åãé²ããã»ãã¥ãªãã£ãåäžãããŸãã
- ã¹ã±ãŒã©ããªãã£ïŒãªãŒã±ã¹ãã¬ãŒã·ã§ã³ããŒã«ã«ãããè€æ°ã®ãµãŒããŒã«ããã£ãŠã³ã³ãããèªåçã«å±éããã³ç®¡çããããšã§ãå¿ èŠã«å¿ããŠã¢ããªã±ãŒã·ã§ã³ãç°¡åã«ã¹ã±ãŒã«ã¢ãããŸãã¯ã¹ã±ãŒã«ããŠã³ã§ããŸãã
- äžè²«æ§ïŒã³ã³ããåã«ãããã¢ããªã±ãŒã·ã§ã³ãäžè²«ããæ¹æ³ã§å±éãããããšãä¿èšŒãããæ§æããªããã®ãªã¹ã¯ã軜æžãããŸãã
äžè¬çãªã³ã³ããåãšãªãŒã±ã¹ãã¬ãŒã·ã§ã³ããŒã«ïŒ
- DockerïŒã³ã³ããããã«ããã·ãããå®è¡ããããã®ãã©ãããã©ãŒã ã
- KubernetesïŒã³ã³ããã®å±éãã¹ã±ãŒãªã³ã°ã管çãèªååãããªãŒãã³ãœãŒã¹ã®ã³ã³ãããªãŒã±ã¹ãã¬ãŒã·ã§ã³ãã©ãããã©ãŒã ã
- Docker ComposeïŒãã«ãã³ã³ããã®Dockerã¢ããªã±ãŒã·ã§ã³ãå®çŸ©ããã³å®è¡ããããã®ããŒã«ã
äŸïŒDockerã䜿çšãããšãã¢ããªã±ãŒã·ã§ã³ãšãã®äŸåé¢ä¿ãã³ã³ããã€ã¡ãŒãžã«ããã±ãŒãžåã§ããŸãããã®ã€ã¡ãŒãžã¯ã©ã®ç°å¢ã«ãå±éã§ããåºç€ãšãªãã€ã³ãã©ã¹ãã©ã¯ãã£ã«é¢ä¿ãªããã¢ããªã±ãŒã·ã§ã³ãäžè²«ããŠå®è¡ãããããšãä¿èšŒãããŸããKubernetesã䜿çšããŠããµãŒããŒã®ã¯ã©ã¹ã¿ãŒå šäœã§ãããã®ã³ã³ããã®å±éãã¹ã±ãŒãªã³ã°ã管çãèªååã§ããŸãã
4. ç£èŠãšã¢ã©ãŒã
å ç¢ãªç£èŠããã³ã¢ã©ãŒãã·ã¹ãã ãå®è£ ããããšã¯ãæ§æããªãããæ€åºããæãŸããç¶æ ããã®éžè±ãç¹å®ããããã«äžå¯æ¬ ã§ãããããã®ã·ã¹ãã ã¯ãCPU䜿çšçãã¡ã¢ãªäœ¿çšéããã£ã¹ã¯å®¹éããããã¯ãŒã¯ãã©ãã£ãã¯ãªã©ã®äž»èŠãªã¡ããªã¯ã¹ãç£èŠãããããå€ãè¶ ããå Žåã«ç®¡çè ã«ã¢ã©ãŒããåºãå¿ èŠããããŸãã
ç£èŠãšã¢ã©ãŒãã®å©ç¹ïŒ
- åé¡ã®æ©æçºèŠïŒç£èŠããã³ã¢ã©ãŒãã·ã¹ãã ã¯ããŠãŒã¶ãŒã«åœ±é¿ãåã¶åã«åé¡ãæ€åºãã管çè ãäºåã«ä¿®æ£æªçœ®ãè¬ããããšãå¯èœã«ããŸãã
- è¿ éãªãã©ãã«ã·ã¥ãŒãã£ã³ã°ïŒã·ã¹ãã ã®ããã©ãŒãã³ã¹ãšå¥å šæ§ã«é¢ãã貎éãªæŽå¯ãæäŸããåé¡ã®ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã容æã«ããŸãã
- ã¢ããã¿ã€ã ã®åäžïŒåé¡ãè¿ éã«æ€åºããã³è§£æ±ºããããšã«ãããç£èŠããã³ã¢ã©ãŒãã·ã¹ãã ã¯ã¢ããªã±ãŒã·ã§ã³ã®å šäœçãªã¢ããã¿ã€ã ãšä¿¡é Œæ§ãåäžãããã®ã«åœ¹ç«ã¡ãŸãã
- ããã¢ã¯ãã£ããªã¡ã³ããã³ã¹ïŒå®¹éã®ã¢ããã°ã¬ãŒããèšç»ããããã¢ã¯ãã£ããªã¡ã³ããã³ã¹ãå®è¡ããã®ã«åœ¹ç«ã€ããŒã¿ãæäŸã§ããŸãã
äžè¬çãªç£èŠãšã¢ã©ãŒãããŒã«ïŒ
- PrometheusïŒãªãŒãã³ãœãŒã¹ã®ç£èŠããã³ã¢ã©ãŒãããŒã«ãããã
- GrafanaïŒãªãŒãã³ãœãŒã¹ã®ããŒã¿å¯èŠåããã³ç£èŠããŒã«ã
- NagiosïŒäººæ°ã®é«ããªãŒãã³ãœãŒã¹ç£èŠã·ã¹ãã ã
- DatadogïŒã¯ã©ãŠãããŒã¹ã®ç£èŠããã³åæãã©ãããã©ãŒã ã
äŸïŒPrometheusãæ§æããŠWebãµãŒããŒã®CPU䜿çšçãç£èŠããŸããCPU䜿çšçã5å以äž80%ãè¶ ããå Žåã«ããªã¬ãŒãããã¢ã©ãŒããèšå®ããŸããããã«ãããæœåšçãªããã©ãŒãã³ã¹ã®ããã«ããã¯ããŠãŒã¶ãŒã«åœ±é¿ãåã¶åã«ããã¢ã¯ãã£ãã«ç¹å®ãã察åŠã§ããŸãã
5. æšæºåãããããã»ã¹ãšããã¥ã¡ã³ã
倿ŽèŠæ±ãæ¿èªãå±éãããŒã«ããã¯ãªã©ãæ§æç®¡çã®ãã¹ãŠã®åŽé¢ã«ã€ããŠæšæºåãããããã»ã¹ãšããã¥ã¡ã³ãã確ç«ããŸããããã«ããããã¹ãŠã®ããŒã ã¡ã³ããŒãåãæé ã«åŸãããã¹ãŠã®å€æŽãé©åã«ææžåãããããšãä¿èšŒãããŸãã
æšæºåãããããã»ã¹ãšããã¥ã¡ã³ãã®å©ç¹ïŒ
- äžè²«æ§ã®åäžïŒæšæºåãããããã»ã¹ã«ããããã¹ãŠã®ã¿ã¹ã¯ãäžè²«ããæ¹æ³ã§å®è¡ããããšã©ãŒãäžæŽåã®ãªã¹ã¯ã軜æžãããŸãã
- ã³ã©ãã¬ãŒã·ã§ã³ã®åŒ·åïŒããã¥ã¡ã³ãã¯ãã·ã¹ãã ãšãã®æ§æã«é¢ããå ±éã®çè§£ãæäŸããããšã§ãããŒã ã¡ã³ããŒéã®ã³ã©ãã¬ãŒã·ã§ã³ãä¿é²ããŸãã
- ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã®å®¹æåïŒããã¥ã¡ã³ãã¯ãã·ã¹ãã ã®æ§æãšè¡ããã倿Žã®èšé²ãæäŸããããšã«ãããåé¡ã®ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã容æã«ããŸãã
- ãã¬ãŒãã³ã°ã³ã¹ãã®åæžïŒæšæºåãããããã»ã¹ãšããã¥ã¡ã³ãã¯ãäžè¬çãªã¿ã¹ã¯ãå®è¡ããããã®æç¢ºã§ç°¡æœãªæç€ºãæäŸããããšã«ãããåºç¯ãªãã¬ãŒãã³ã°ã®å¿ èŠæ§ãæžãããŸãã
æšæºåãããããã»ã¹ãšããã¥ã¡ã³ãã®ãã¹ããã©ã¯ãã£ã¹ïŒ
- ããŒãžã§ã³ç®¡çã·ã¹ãã ã䜿çšããïŒãã¹ãŠã®ããã¥ã¡ã³ããGitãªã©ã®ããŒãžã§ã³ç®¡çã·ã¹ãã ã«ä¿åãã倿Žã远跡ãã广çã«å ±åäœæ¥ãè¡ããŸãã
- æ§æç®¡çèšç»ãäœæããïŒæ§æã¢ã€ãã ã管çããããã®ããã»ã¹ãããŒã«ãè²¬ä»»ãæŠèª¬ããå æ¬çãªæ§æç®¡çèšç»ãçå®ããŸãã
- ãã¹ãŠã®å€æŽãææžåããïŒå€æŽã®çç±ã圱é¿ãããã³ãããå®è£ ããããã«åãããæé ãå«ããæ§æãžã®ãã¹ãŠã®å€æŽãææžåããŸãã
- ããã¥ã¡ã³ããææ°ã®ç¶æ ã«ä¿ã€ïŒããã¥ã¡ã³ãã宿çã«ã¬ãã¥ãŒããã³æŽæ°ããŠãæ£ç¢ºã§ãããã·ã¹ãã ã®çŸåšã®ç¶æ ãåæ ããŠããããšã確èªããŸãã
6. 宿çãªç£æ»ãšãã¹ã
ç°å¢ãæ§æç®¡çããªã·ãŒã«æºæ ããŠãããæãŸããç¶æ ããã®éžè±ããªãããšã確èªããããã«ã宿çãªç£æ»ã宿œããŸãããã¹ãŠã®ç°å¢ã§ã¢ããªã±ãŒã·ã§ã³ãæ£ããæ©èœããããšã確èªããããã«ã宿çãªãã¹ããå®è¡ããŸãã
宿çãªç£æ»ãšãã¹ãã®å©ç¹ïŒ
- æ§æããªããã®æ©æçºèŠïŒç£æ»ã¯ãåé¡ã«ã€ãªããåã«æ§æããªãããç¹å®ã§ããŸãã
- ã»ãã¥ãªãã£ã®åäžïŒç£æ»ã¯ãã»ãã¥ãªãã£ã®è匱æ§ãç¹å®ããã»ãã¥ãªãã£ããªã·ãŒãæœè¡ãããŠããããšã確èªã§ããŸãã
- ä¿¡é Œæ§ã®åäžïŒãã¹ãã«ããããã¹ãŠã®ç°å¢ã§ã¢ããªã±ãŒã·ã§ã³ãæ£ããæ©èœããããšãä¿èšŒãããå šäœçãªä¿¡é Œæ§ãåäžããŸãã
- ãªã¹ã¯ã®äœæžïŒå®æçãªç£æ»ãšãã¹ãã¯ãäºæãã¬åé¡ãããŠã³ã¿ã€ã ã®ãªã¹ã¯ãäœæžããŸãã
宿çãªç£æ»ãšãã¹ãã®ãã¹ããã©ã¯ãã£ã¹ïŒ
- ç£æ»ãèªååããïŒèªååããŒã«ã䜿çšããŠãç°å¢ã®å®æçãªç£æ»ãå®è¡ããŸãã
- ãã¹ãèšç»ãçå®ããïŒã¢ããªã±ãŒã·ã§ã³ãšãã®ç°å¢ã®ãã¹ãŠã®åŽé¢ãã«ããŒããå æ¬çãªãã¹ãèšç»ãäœæããŸãã
- ååž°ãã¹ããå®è¡ããïŒã¢ããªã±ãŒã·ã§ã³ãŸãã¯ãã®ç°å¢ãžã®å€æŽåŸãæ¢åã®æ©èœã圱é¿ãåããªãããšã確èªããããã«ååž°ãã¹ãã宿œããŸãã
- ç£æ»ãšãã¹ãã®çµæãææžåããïŒç¹å®ãããåé¡ãšããã解決ããããã«åãããæé ãå«ãããã¹ãŠã®ç£æ»ãšãã¹ãã®çµæãææžåããŸãã
7. ã³ã©ãã¬ãŒã·ã§ã³ãšã³ãã¥ãã±ãŒã·ã§ã³
éçºããã¹ããéçšããŒã éã®ã³ã©ãã¬ãŒã·ã§ã³ãšã³ãã¥ãã±ãŒã·ã§ã³ã®æåãè²ã¿ãŸãããã¹ãŠã®ããŒã ã¡ã³ããŒãæ§æç®¡çã®ããªã·ãŒãšãã©ã¯ãã£ã¹ãèªèããŠããããšã確èªããããã«ããªãŒãã³ãªã³ãã¥ãã±ãŒã·ã§ã³ãšç¥èå ±æã奚å±ããŸãã
ã³ã©ãã¬ãŒã·ã§ã³ãšã³ãã¥ãã±ãŒã·ã§ã³ã®å©ç¹ïŒ
- ããŒã ã¯ãŒã¯ã®åäžïŒã³ã©ãã¬ãŒã·ã§ã³ãšã³ãã¥ãã±ãŒã·ã§ã³ã¯ãããŒã ã¯ãŒã¯ãšå ±æè²¬ä»»ã®æèŠãè²ã¿ãŸãã
- ããè¯ãæææ±ºå®ïŒãªãŒãã³ãªã³ãã¥ãã±ãŒã·ã§ã³ã¯ã決å®ãæ£ç¢ºã§å®å šãªæ å ±ã«åºã¥ããŠè¡ãããããšãä¿èšŒããŸãã
- è¿ éãªåé¡è§£æ±ºïŒã³ã©ãã¬ãŒã·ã§ã³ã¯ãããŸããŸãªããŒã ã¡ã³ããŒã®å°éç¥èãçµéããããšã§ãããè¿ éãªåé¡è§£æ±ºãä¿é²ããŸãã
- ã€ãããŒã·ã§ã³ã®å¢å ïŒã³ã©ãã¬ãŒã·ã§ã³ã¯ãã¢ã€ãã¢ãå ±æãã解決çããã¬ã€ã³ã¹ããŒãã³ã°ããããã®ãã©ãããã©ãŒã ãæäŸããããšã«ãããã€ãããŒã·ã§ã³ã奚å±ããŸãã
ã³ã©ãã¬ãŒã·ã§ã³ãšã³ãã¥ãã±ãŒã·ã§ã³ã®ãã¹ããã©ã¯ãã£ã¹ïŒ
- æç¢ºãªã³ãã¥ãã±ãŒã·ã§ã³ãã£ãã«ã確ç«ããïŒSlackãMicrosoft Teamsãªã©ã®ã³ãã¥ãã±ãŒã·ã§ã³ããŒã«ã䜿çšããŠãããŒã ã¡ã³ããŒéã®ã³ãã¥ãã±ãŒã·ã§ã³ãä¿é²ããŸãã
- 宿çãªäŒè°ã宿œããïŒæ§æç®¡çã®åé¡ã«ã€ããŠè©±ãåããç¥èãå ±æããããã«å®æçãªäŒè°ãéå¬ããŸãã
- ç¥èå ±æã奚å±ããïŒããŒã ã¡ã³ããŒãèªåã®ç¥èãšå°éç¥èãä»ã®äººãšå ±æããããšã奚å±ããŸãã
- éææ§ã®æåãä¿é²ããïŒæ å ±ããªãŒãã³ãã€èª å®ã«å ±æããããšã«ãããéææ§ã®æåãä¿é²ããŸãã
å®äžçã®äŸ
äžçäžã®çµç¹ãæ§æç®¡çãšç°å¢ããªãã£ã掻çšããŠã°ããŒãã«ãªæåãåããŠããäŸãããã€ã玹ä»ããŸãã
- NetflixïŒNetflixã¯ãAWSäžã«æ§ç¯ãããé«åºŠã«èªååãããã€ã³ãã©ã¹ãã©ã¯ãã£ã䜿çšããŠãäžçäžã®äœçŸäžäººãã®ãŠãŒã¶ãŒã«ã¹ããªãŒãã³ã°ã³ã³ãã³ããé ä¿¡ããŠããŸãã圌ãã¯æ§æç®¡çããŒã«ãšãã©ã¯ãã£ã¹ã«äŸåããŠãã€ã³ãã©ã¹ãã©ã¯ãã£ãè€æ°ã®å°åã§äžè²«æ§ããããä¿¡é Œã§ããããšãä¿èšŒããŠããŸãã圌ãã®Spinnakerãã©ãããã©ãŒã ã¯ãã°ããŒãã«ãªã€ã³ãã©ã¹ãã©ã¯ãã£å šäœã«å€æŽãå±éããäžã§éèŠãªåœ¹å²ãæãããŠããŸãã
- SpotifyïŒSpotifyã¯Kubernetesã䜿çšããŠã³ã³ããåãããã¢ããªã±ãŒã·ã§ã³ã管çããã³ãªãŒã±ã¹ãã¬ãŒã·ã§ã³ããããããç°ãªãç°å¢ã§äžè²«ããŠå®è¡ãããããšãä¿èšŒããŠããŸãã圌ãã¯ãŸããæ§æç®¡çããŒã«ã䜿çšããŠã€ã³ãã©ã¹ãã©ã¯ãã£ã®æ§æãèªååããŠããŸããã¯ã©ãŠããã€ãã£ãæè¡ãšIaCã®æ¡çšã«ããã圌ãã¯ã°ããŒãã«ã«äºæ¥ãæ¡å€§ããããšãã§ããŸããã
- AirbnbïŒAirbnbã¯æ§æç®¡çããŒã«ã䜿çšããŠãã¢ããªã±ãŒã·ã§ã³ãšã€ã³ãã©ã¹ãã©ã¯ãã£ã®å±éãšæ§æãèªååããããããè€æ°ã®ç°å¢ã§äžè²«ããŠããããšãä¿èšŒããŠããŸãã圌ãã¯ãŸããç£èŠããã³ã¢ã©ãŒãã·ã¹ãã ã䜿çšããŠãåé¡ãè¿ éã«æ€åºããã³è§£æ±ºããŠããŸããã€ã³ãã©ã¹ãã©ã¯ãã£ã®èªååãžã®åãçµã¿ã«ããã圌ãã¯ã°ããŒãã«ãªãã¬ãŒã³ã¹ãæ¥éã«æ¡å€§ããããšãã§ããŸããã
- ããã°ããŒãã«éèæ©é¢ïŒãã®æ©é¢ã¯Terraformã䜿çšããŠIaCãå®è£ ããè€æ°ã®å°åã®ã¯ã©ãŠãã€ã³ãã©ã¹ãã©ã¯ãã£ã管çããŸããã圌ãã¯ç°å¢æ§æãæšæºåããå±éãèªååããããšã§ãå±éæéãå€§å¹ ã«åæžããã°ããŒãã«ãªéçšå šäœã§ã®äžè²«æ§ãåäžãããŸããããŸãã峿 ŒãªèŠå¶èŠä»¶ãæºããããã«ãIaCãã€ãã©ã€ã³å ã«å ç¢ãªã»ãã¥ãªãã£ç®¡çãå®è£ ããŸããã
çµè«
æ§æç®¡çãšç°å¢ããªãã£ã¯ãç¹ã«ã°ããŒãã«çµç¹ã«ãšã£ãŠãä¿¡é Œæ§ã®é«ããœãããŠã§ã¢å±éãšéçšã«äžå¯æ¬ ã§ããInfrastructure as Codeãæ§æç®¡çããŒã«ãã³ã³ããåãç£èŠãšã¢ã©ãŒããæšæºåãããããã»ã¹ã宿çãªç£æ»ãã³ã©ãã¬ãŒã·ã§ã³ã®ä¿é²ãšãã£ãæŠç¥ãæ¡çšããããšã§ãäŒæ¥ã¯äžè²«æ§ã®ããäºæž¬å¯èœãªç°å¢ãå®çŸããå±éãªã¹ã¯ãäœæžããåžå Žæå ¥æéãççž®ããã¢ããªã±ãŒã·ã§ã³ã®å šäœçãªä¿¡é Œæ§ãšå®å®æ§ãåäžãããããšãã§ããŸãããããã®ãã©ã¯ãã£ã¹ãåãå ¥ããããšã¯ã仿¥ã®ãŸããŸãè€éåããçžäºæ¥ç¶ãããäžçã§ã°ããŒãã«ãªæåãåããããã®éèŠãªã¹ãããã§ããé©åãªããŒã«ãšããã»ã¹ãžã®æè³ã¯ãããŠã³ã¿ã€ã ã®åæžãã€ãããŒã·ã§ã³ã®å éããããŠããä¿¡é Œæ§ã®é«ã顧客äœéšãšãã圢ã§å©çãããããã§ãããã